﻿
namespace Patterns4Net.Attributes.DomainDrivenDesign
{
    using System;

    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
    public sealed class AggregateRootAttribute : Attribute, IPattern, IPatternAttribute
    {
        public string Name
        {
            get { return "Aggregate Root"; }
        }

        public AbstractionLevel? AbstractionLevel
        {
            get { return Attributes.AbstractionLevel.Higher; }
        }
    }
}
